package com.hxh.order.enums;

import lombok.Getter;

/**
 * @author huangxunhui
 * Date: Created in 18/9/2 下午2:54
 * Utils: Intellij Idea
 * Description:返回枚举
 */
@Getter
public enum ResultEnum {
    /**
     * 返回枚举
     */
    PARAM_ERROR(1, "参数错误"),

    CART_EMPTY(2, "购物车为空"),

    ORDER_NOT_EXIST(3,"订单不存在"),

    ORDER_STATUS_ERROR(4,"订单状态错误"),

    ORDER_DETAIL_NOT_EXIST(5,"订单详情不存在"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
